# 创建可执行文件
add_executable(torch_test
    src/main.cpp
)


# 添加 LibTorch 头文件路径
target_include_directories(torch_test
    PRIVATE
    ${TORCH_INCLUDE_DIRS}  # LibTorch 头文件路径
    # ${CUDA_INCLUDE_DIRS}
    # ${CMAKE_SOURCE_DIR}/include  # 你的项目自定义头文件路径
)

# 链接库
target_link_libraries(torch_test
    PRIVATE
    ${TORCH_LIBRARIES}
    # torch_cuda  # 如果使用 CUDA
)

# 链接我们的库
# target_link_libraries(radar_app PRIVATE mylib)

# 链接我们的动态库
# target_link_libraries(radar_app PRIVATE mylib2)

# 安装配置 (可选)
# install(TARGETS radar_app DESTINATION bin)

